package com.hao.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * @TableName b_comment
 */
@TableName(value ="b_comment")
@Data
public class Comment implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)

    private Integer id;

    private String content;

    private String commentTime;

    private Integer likeCount;

    private Integer userId;

    private Integer thingId;
    @TableField(exist = false)
    public String username; // 用户名
    @TableField(exist = false)
    public String title; // 名称
    @TableField(exist = false)
    public String cover; // 封面
}